home *** CD-ROM | disk | FTP | other *** search
-
-
-
- ddddhhhhccccppppddddbbbb((((1111MMMM)))) ddddhhhhccccppppddddbbbb((((1111MMMM))))
-
-
-
- NNNNAAAAMMMMEEEE
- dhcpdb - DHCP database manager
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ////uuuussssrrrr////ssssbbbbiiiinnnn////ddddhhhhccccppppddddbbbb [ ----aaaa [ ----rrrr] ] | [ ----dddd ] | [ ----uuuu ] | [ ----pppp ] [ ----XXXX ]
- [ ----CCCC CCCClllliiiieeeennnntttt____iiiidddd ] [ ----MMMM MMMMaaaacccc____aaaaddddddddrrrreeeessssssss ] [ ----IIII IIIIPPPP____aaaaddddddddrrrreeeessssssss ]
- [ ----HHHH hhhhoooossssttttnnnnaaaammmmeeee ] [ ----TTTT lllleeeeaaaasssseeee____iiiinnnn____sssseeeeccccoooonnnnddddssss ] [ ----ffff ddddhhhhccccpppp____ddddaaaattttaaaabbbbaaaasssseeee ]
-
- ////uuuussssrrrr////ssssbbbbiiiinnnn////ddddhhhhccccppppddddbbbb [ ----DDDD ] | [ ----LLLL ] [ ----XXXX ] [ ----ffff ddddhhhhccccpppp____ddddaaaattttaaaabbbbaaaasssseeee ]
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _d_h_c_p_d_b is a database manager for the NDBM database used by the DHCP
- server to store address leases. It provides a command line interface to
- add, delete, update, or print the DHCP database.
-
- The tool can be used either in entry mode to manipulate individual
- entries or in file mode. In file mode the entire contents of the database
- can be dumped to a file or loaded from a file.
-
-
- CCCCOOOOMMMMMMMMAAAANNNNDDDD LLLLIIIINNNNEEEE OOOOPPPPTTTTIIIIOOOONNNNSSSS
- In the entry mode options can be used to add (replace), delete, update a
- lease, or print an entry using a key. The key can be either a client
- identifier, MAC (interface) address, IP address, or a hostname.
-
- ----aaaa Add an entry. The ----rrrr option allows an existing entry to be replaced
- or a new entry is added if the specified entry does not exist. The
- client identifier, Mac address, IP address, and hostname must be
- specified. If a record is being replaced these values must be
- specified to be the same as existing values in the database. The
- lease time should also be specified.
-
- ----dddd Delete an entry. A single key in the form of client identifier, Mac
- address, IP address, or hostname should be specified.
-
- ----uuuu Update lease time. Specify a key and the lease time using the ----TTTT
- option.
-
- ----pppp Print an entry for the given key. This can also be used to print
- leases expiring in more or less than a specified number of seconds.
-
- ----XXXX Specifies that the client identifier is a colon separated string of
- bytes in hexadecimal in the specified input or in the output. If
- this option is not specified the client identifier is assumed to be
- a string.
-
- ----CCCC _C_i_d
- Specifies the client identifier key.
-
- ----MMMM _M_a_c__a_d_d_r_e_s_s
- Specifies the Mac (physical interface) address as a string of bytes
- in hexadecimal, separated by colons.
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- ddddhhhhccccppppddddbbbb((((1111MMMM)))) ddddhhhhccccppppddddbbbb((((1111MMMM))))
-
-
-
- ----HHHH _H_o_s_t_n_a_m_e
- This is the hostname (usually fully qualified) as it appears in the
- database.
-
- ----IIII _I_P _a_d_d_r_e_s_s
- Specifies the IP address as a dotted decimal address string.
-
- ----TTTT _l_e_a_s_e__s_e_c_o_n_d_s|_a_b_s_o_l_u_t_e _t_i_m_e
- Specifies the lease time in seconds. With the ----pppp option the lease
- time can be specified to print the leases that expire in less than
- or greater than a given number of seconds from the current time. For
- example -_p -_T <_1_0_0, and -_p -_T >_1_0_0 prints leases expiring in less
- than 100 seconds and more than or equal to 100 seconds respectively.
- The format -_T "_s_e_c[_0-_6_1] _m_i_n[_0-_5_9] _h_o_u_r[_0-_2_3] _m_d_a_y[_1-_3_1] _m_o_n[_0-_1_1]
- _y_e_a_r_s__s_i_n_c_e__1_9_0_0" can also be used to specify the time when adding
- or updating an entry. For example -T "10 12 20 18 4 98" means the
- lease should expire on May 18 21:12:10 1998. The format is the same
- as is used with the mmmmkkkkttttiiiimmmmeeee(3C) call. Alternately -_T _s_e_c_o_n_d_s can be
- used to specify the time in seconds from 00:00:00 UTC, January 1,
- 1970 (see _t_i_m_e(2)). For example in the particular case discussed
- above the option would be specified as -_T _8_9_5_5_5_1_1_3_0.
-
- With the -_a and -_u options the lease can be specified as IIIINNNNFFFF for an
- infinite lease or as SSSSTTTTAAAATTTTIIIICCCC for a static (infinite) lease. For
- example, to make an existing lease for address 10.0.10.1 static the
- command is _d_h_c_p_d_b -_I _1_0._0._1_0._1 -_u -_T _S_T_A_T_I_C.
-
- ----ffff Specifies an alternate database to use. The default is
- /_v_a_r/_d_h_c_p/_e_t_h_e_r_T_o_I_P.
-
- FFFFiiiilllleeee mmmmooooddddeeee uuuussssaaaaggggeeee
- In the file mode the command can be used to dump the entire database to a
- file that can be subsequently loaded into the database.
-
- ----DDDD Dumps the database to the standard output. The file consists of
- fields separated by tabs and includes the client identifier, Mac
- address, IP address, hostname, and the lease time.
-
- ----LLLL Loads the database from the standard input.
-
-
- NNNNOOOOTTTTEEEESSSS
- The /_e_t_c/_e_t_h_e_r_s and /_e_t_c/_h_o_s_t_s are not updated when the DHCP
- /_v_a_r/_d_h_c_p/_e_t_h_e_r_T_o_I_P database is updated.
-
- FFFFIIIILLLLEEEESSSS
- /var/dhcp/etherToIP.lock
- /var/dhcp/etherToIP.pag
- /var/dhcp/etherToIP.dir
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-
-
-
- ddddhhhhccccppppddddbbbb((((1111MMMM)))) ddddhhhhccccppppddddbbbb((((1111MMMM))))
-
-
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- dhcp_server(1M) ProclaimServerMgr(1M),
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 3333
-
-
-
-